//
//  UIViewController+LYAdd.m
//  LYDevelopKit
//
//  Created by 李阳 on 2018/5/25.
//

#import "UIViewController+LYAdd.h"
#import "LYUIMacros.h"

LYSYNTH_DUMMY_CLASS(UIViewController_LYAdd)

@implementation UIViewController (LYAdd)

/// 从SB中加载指定的控制器
+ (instancetype)loadFromStoryboardWithName:(NSString *)name
{
    UIStoryboard *sb = [UIStoryboard storyboardWithName:name bundle:nil];
    return [sb instantiateViewControllerWithIdentifier:NSStringFromClass([self class])];
}
+ (instancetype)loadFromMainStoryboard
{
    return [self loadFromStoryboardWithName:@"Main"];
}

@end
